using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using SharePoint.ImportExport.Core;

namespace CodePlex.ExtractedDataReorganizer
{
    public partial class frmEditSite : Form
    {
        private SharePoint.ImportExport.Core.Site Site;

        public frmEditSite(SharePoint.ImportExport.Core.Site cont)
        {
            this.Site = cont;
            InitializeComponent();
        }

        private void frmEditSite_Load(object sender, EventArgs e)
        {
            txtName.Text = this.Site.Name;
            txtTemplate.Text = this.Site.Template;
            txtOwner.Text = this.Site.Owner;
            txtDescription.Text = this.Site.Description;
            txtContact.Text = this.Site.Contact;
            chkInheritPermissions.Checked = this.Site.InheritPermissions;
            
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            this.Site.Name = txtName.Text;
            this.Site.Contact= txtContact.Text;
            this.Site.Template=txtTemplate.Text;
            this.Site.Owner = txtOwner.Text;
            this.Site.Description = txtDescription.Text;
            this.Site.InheritPermissions = chkInheritPermissions.Checked;

        }
        
    }
}